package ooday03;
/** 接口的测试类*/
public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黑",3,"黑");
        dog.eat();
        dog.lookHome();
        dog.swim();
        dog.drink();

        Chick chick = new Chick("小黄",1,"黄");
        chick.eat();
        chick.layEggs();
        chick.drink();

        Fish fish = new Fish("小花",1,"花");
        fish.eat();
        fish.swim();
        fish.drink();




    }
}
